package com.mrjy.custom.bo;

import javax.servlet.http.HttpSession;

import com.mrjy.common.entity.UserCoursePackageRel;
import com.mrjy.custom.dto.CustomModuleDto;

public interface ICustomModuleBo {

	Object queryPageJPCourse(CustomModuleDto module);

	Object queryPageFreeVideo(CustomModuleDto module);

	Object insert(CustomModuleDto moduleDto, HttpSession session);
	
	/**
	 * 根据明师id查询该明师所有视频
	 * @param teacherName
	 * @return
	 */
	Object queryVideoByTeacher(String teacherId);

	/**
	 * 根据用户输入关键字模糊查询所有老师
	 * @param teacherName
	 * @param flag 
	 * @return
	 */
	Object queryAllTeacher(String teacherName, String flag);

	/**
	 * 分页查询--后台
	 * @param module
	 * @param session 
	 * @return
	 */
	Object listByPage(CustomModuleDto module, HttpSession session);

	/**
	 * 获取推荐总数
	 * @param module
	 * @return
	 */
	Object getTotal(CustomModuleDto module);

	/**
	 * 启用/禁用
	 * @param module
	 * @param session 
	 * @return 
	 */
	Object updateDisableFlag(CustomModuleDto module, HttpSession session);

	/**
	 * 修改
	 * @param module
	 * @param session 
	 * @return 
	 */
	Object updateById(CustomModuleDto module, HttpSession session);

	Object queryPageCustomModule(CustomModuleDto module);

	Object deleteByIds(CustomModuleDto module, HttpSession session);

    Object insertTopic(CustomModuleDto module, HttpSession session);

	Object queryTopicById(CustomModuleDto module, HttpSession session);

    Object queryPercentFinish(CustomModuleDto module, HttpSession session);

    Object querySummaryByUserId(CustomModuleDto customModuleDto);

    Object queryParentCertificationByUserId(CustomModuleDto customModuleDto, HttpSession session);

    Object queryCustomTopicInfoByUserId(UserCoursePackageRel userCoursePackageRel, HttpSession session);
}
